<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/11/17
 * Time: 13:29
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

return [
    "mini" => [
        "app_id" => "wxd64b75e43b0a1d26",
        "secret" => "b24ceb435e32b41a895f9b2722412fcb"
    ],
    "miniPay" => [
        'app_id' => 'wxa5e59821aaed9755',
        'mch_id' => '1604657652',
        'key' => 'dd639c869b1912f467855572be32ae4c',   // API 密钥

        // 如需使用敏感接口（如退款、发送红包等）需要配置 API 证书路径(登录商户平台下载 API 证书)
        'cert_path' => root_path('config') . "apiclient_cert.pem", // XXX: 绝对路径！！！！
        'key_path' => root_path('config') . "apiclient_key.pem",      // XXX: 绝对路径！！！！

        'notify_url' => '默认的订单回调地址',     // 你也可以在下单时单独设置来想覆盖它
    ],
    "wechat" => [
        'app_id' => 'wxa5e59821aaed9755',
        'secret' => 'd609e8abb603e5e86af14292385d53f8',

        // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
        'response_type' => 'array',
        'oauth' => [
            'scopes'   => ['snsapi_base'],
        ],
        //...
    ]
];